package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class WuZhuangGuanSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "五庄观";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(99, 74);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("接引道人", new Point(57, 31));
        addNpc("清风", new Point(56, 38));
        addNpc("明月", new Point(60, 36));
    }

    @Override
    protected void addRooms() {
        Room qianKunDian = createRoom("乾坤殿", new Dimension(49, 33));
        addNpcToRoom(qianKunDian, "镇元大仙", new Point(24, 13));
        rooms.add(qianKunDian);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(7, 4), "大唐境外", new Point(628, 75), new Point(4, 3));
        addSceneTeleport(new Point(53, 34), "乾坤殿", new Point(15, 8), new Point(56, 36));
        addRoomTeleport(new Point(53, 34), "乾坤殿", new Point(15, 8), new Point(56, 36));
    }

    public static void main(String[] args) {
        new WuZhuangGuanSceneBuilder().execute("wuzhuangguan_scene.json", "五庄观");
    }
}